home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 November: Tool Chest / Dev.CD Nov 96 TC / Dev.CD Nov 96 TC.toast / Sample Code / Interapplication Communication / MenuScripter 4.0 / Sources / MSAESelect.h < prev    next >
Encoding:
Text File  |  1996-07-09  |  1000 b   |  38 lines  |  [TEXT/CWIE]

  1. // MSAESelect.h
  2. //
  3. // Original version by Jon Lansdell and Nigel Humphreys.
  4. // 4.0 and 3.1 updates by Greg Sutton.
  5. // ©Apple Computer Inc 1996, all rights reserved.
  6.  
  7. #ifndef __MSAESELECT__
  8. #define __MSAESELECT__
  9.  
  10. #include <AppleEvents.h>
  11. #include <AEObjects.h>
  12. #include <AERegistry.h>
  13.  
  14. #include "MSToken.h"
  15.  
  16. pascal OSErr    DoSelect(const AppleEvent *theAppleEvent, AppleEvent *reply, long refcon);
  17.  
  18. OSErr            SelectWindowToken(WindowToken* theToken);
  19. OSErr            SelectWindowDesc(AEDesc* windowDesc);
  20.  
  21. OSErr            SelectTextToken(TextToken* theToken);
  22. OSErr            SelectTextDesc(AEDesc* textDesc);
  23.  
  24. OSErr            SelectMenuItemToken( MenuItemToken* theToken );
  25. OSErr            SelectMenuItemDesc( AEDesc* theDesc );
  26.  
  27. OSErr            SelectDesc(const AEDesc* aDesc, AEDesc* result);
  28.  
  29. OSErr            GetWindowSelection(WindowPtr aWindow, TextToken* resultToken,
  30.                                                                 short* resultLength);
  31. OSErr            UpdateSelectionToken(TextToken* anInsertToken, TextToken* aSelectionToken,
  32.                                                         short oldLength, short* insertLength);
  33.  
  34. #endif
  35.  
  36.  
  37.  
  38.